package com.example.design.pattern.behavior.strategy;

public class StrategyPatternDemo {

    public static void main(String[] args) {
        
        PayService payService = new PayService();
        
        String payType = "Alipay";
        payService.pay(payType, new Object());
        
        payType = "Weixin";
        payService.pay(payType, new Object());
    }
}
